Recursive State Machine Guided Graph Folding for Context-Free Language Reachability

نویسندگان

چکیده

Context-free language reachability (CFL-reachability) is a fundamental framework for program analysis. A large variety of static analyses can be formulated as CFL-reachability problems, which determines whether specific source-sink pairs in an edge-labeled graph are connected by reachable path, i.e., path whose edge labels form string accepted the given CFL. Computing expensive. The fastest algorithm exhibits slightly subcubic time complexity with respect to input size. Improving scalability practical interest, but reducing inherently difficult. In this paper, we focus on improving from more perspective---reducing Our idea arises existence trivial edges, edges that do not affect any CFL-reachability. We observe two nodes joined folded---by merging all joining them removed---without affecting result. By studying characteristic recursive state machines (RSMs), alternative CFLs, propose approach identify foldable node without need verify underlying paths (which equivalent solving problem). particular, problem instance G and RSM, based correspondence between transitions folding principle, determine adjacent examining only their incoming outgoing edges. On top efficient GF. GF linear number graph. evaluations clients (alias analysis value-flow analysis) show significantly accelerates RSM/CFL-reachability average, analysis, reduces 60.96% 42.67% graphs, obtaining speedup 4.65× memory usage reduction 57.35%. For alias 38.93% 35.61% 3.21× 65.19%.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Recursive Queries and Context-free Graph Grammars

The semantics of a recursive query in the context of a relational database can be formalized in terms ofa context-free graph grammar associated with it. This grammargenerates oriented, labeled hypergraphs. The labels of the hypercdges of these hypergraphs, called the computation graphs of the query, are the names of the relations forming the database under consideration. Some

متن کامل

Recursive Graph Deduction and Reachability Queries

In this paper, we discuss an adjustable strategy for the transitive closure compression to support graph reachability queries, asking whether a given node u in a directed graph G is reachable from another node v through a path. The main idea behind it is to define a series of graph deductions G0(V0, E0) (= G), G1(V1, E1), ..., Gk(Vk, Ek) with ni > ni+1 (i = 0, ..., k 1), where ni = |Vi|. Each n...

متن کامل

Interconvertibility of Set Constraints and Context-free Language Reachability 1

We show the interconvertibility of context-free-language reachability problems and a class of set-constraint problems: given a context-free-language reachability problem, we show how to construct a set-constraint problem whose answer gives a solution to the reachability problem; given a set-constraint problem, we show how to construct a context-free-language reachability problem whose answer gi...

متن کامل

Interconvertibility of Set Constraints and Context-free Language Reachability

We show the interconvertibility of context-free-language reachability problems and a class of set-constraint problems: given a context-free-language reachability problem, we show how to construct a set-constraint problem whose answer gives a solution to the reachability problem; given a set-constraint problem, we show how to construct a context-free-language reachability problem whose answer gi...

متن کامل

Language Independent Probabilistic Context-Free Parsing Bolstered by Machine Learning

Unlexicalized probabilistic context-free parsing is a general and flexible approach that sometimes reaches competitive results in multilingual dependency parsing even if a minimum of language-specific information is supplied. Furthermore, integrating parser results (good at long dependencies) and tagger results (good at short range dependencies, and more easily adaptable to treebank peculiariti...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Proceedings of the ACM on programming languages

سال: 2023

ISSN: ['2475-1421']

DOI: https://doi.org/10.1145/3591233